<%
var headerPart = {
%>
<style>
	.layui-input-inline{
		min-width: 400px!important;
	}
	html{background-color: #fff!important;}
</style>
<% }; %>
<% layout("/layouts/micro.html",{headerSection:headerPart}){ %>
<div class="childrenBody">
	<div class="layui-tab-content">
	<form id="inputForm" modelAttribute="site" action="${ctx}/cms/site/save" method="post" class="layui-form">
		<input type="hidden"  name="id" value="${site.id}"/>
		<#message content="${message!}"/>
		<!-- <div class="layui-form-item"> -->
		<div class="layui-form-item">
			<label class="layui-form-label" >站点名称:</label>
			<div class="layui-input-inline">
				<input type="text" name="name" value="${site.name}" htmlEscape="false" maxlength="200" class="layui-input" lay-verify="required"/>
			</div>
			<div class="layui-form-mid "><font color="red">*</font> </div>
		</div>
		
		<div class="layui-form-item">
			<label class="layui-form-label" >站点标题:</label>
			<div class="layui-input-inline">
				<input type="text" name="title" value="${site.title}" htmlEscape="false" maxlength="200" class="layui-input" lay-verify="required"/>
			</div>
			<div class="layui-form-mid "><font color="red">*</font> </div>
		</div>
		
		<div class="layui-form-item">
			<label class="layui-form-label" >站点Logo:</label>
			<div class="layui-input-inline">
				<#fileUpload id="logo" name="logo" value="${site.logo}" filename="" type="images" fileType="jpg|png" width="300px" height="200px" required="false"/>
			</div>
			<div class="layui-form-mid layui-word-aux">建议Logo大小：1000 × 145（像素）</div>
		</div>
		
		<div class="layui-form-item layui-form-text">
			<label class="layui-form-label">描述:</label>
			<div class="layui-input-block">
				<textarea name="description" htmlEscape="false" rows="4" maxlength="200" class="layui-textarea">${site.description}</textarea>
			</div>
		</div>
		
		<div class="layui-form-item">
			<label class="layui-form-label">关键字:</label>
			<div class="layui-input-inline">
				<input type="text" name="keywords" value="${site.keywords}" htmlEscape="false" maxlength="200" class="layui-input"/>
			</div>
			<div class="layui-form-mid layui-word-aux">填写描述及关键字，有助于搜索引擎优化</div>
		</div>
		
		<div class="layui-form-item">
			<label class="layui-form-label">默认主题:</label>
			<div class="layui-input-inline">
				<select name="theme" class="input-medium">
					<#options items="${@DictUtils.getDictList('cms_theme')}" value="${site.theme}"/>
				</select>
			</div>
		</div>
		
		<div class="layui-form-item">
			<label class="layui-form-label">版权信息:</label>
			<div class="layui-input-block">
				<#ueditor id="copyright" name="copyright" content="${site.copyright}" height="300"/>
			</div>
		</div>
		
		<div class="layui-form-item">
			<label class="layui-form-label">自定义首页:</label>
			<div class="layui-input-inline">
				<input type="text" name="customIndexView" value="${site.customIndexView}" htmlEscape="false" maxlength="200" class="layui-input"/>
			</div>
		</div>
		
		<div class="layui-form-item layui-hide">
	    	<div class="layui-input-block">
      			<button class="layui-btn" id="siteForm" lay-filter="*" lay-submit>保 存</button>
	       		<button type="reset" class="layui-btn layui-btn-primary" onclick="history.go(-1)">返回</button>
		    </div>
	  	</div>
	</form>
	</div>
</div>
<%}%>